package com.alex.client;


import java.io.IOException;

/**
 * @Author: 张福垒
 * @Date: 2024/10/29 14:59
 * @Description:
 * @phone: 13864677931
 */
public class A_PicDownload {
    public static void main(String[] args) throws IOException {
        String url = "https://pubpeer.com/storage/image-1566983406479.png";
        HttpClientConfig config = HttpClientUtil.getSearConfig(url, "", "", true);
        config.setDirPath("/Users/zhangfulei/Downloads/新建文件夹/");
        config.setFilePath("image-1566983406479.png");
        Integer code = HttpClient.getDownImageCode(config);
        System.out.println(code);
    }
}